module ActiveRecord
  module ConnectionAdapters # :nodoc:
    class AbstractAdapter

      def log_info(sql, name, runtime)
        if @logger && @logger.debug?
          name = "#{name.nil? ? "SQL" : name} (#{sprintf("%f", runtime)})"
          NinjaWebDebugger.new_db_log ( format_log_entry(name, sql.squeeze(' ')) )
          @logger.debug format_log_entry(name, sql.squeeze(' '))
        end
      end

    end
  end
end